IApi Interface

Represents the EtherCAT settings.

Inheritance hierarchy

System.Object
  IntervalZero.KINGSTAR.Base.Api.IApi

Namespace: IntervalZero.KINGSTAR.Base.Api

Assembly: IntervalZero.KINGSTAR.Base.Api (in IntervalZero.KINGSTAR.Base.dll) Version: 4.4.0.0

Syntax

C#VB
public interface IApi
Public Interface IApi

 

The IApi interface exposes the following members.

Axis control methods

Reads and writes the values relevant to an axis.

 NameDescription
ForceAxisInputBitWrites a bit into an input of a simulated axis.
ForceAxisInputByteWrites a byte into an input of a simulated axis.
ForceAxisInputDWordWrites a double word into an input of a simulated axis.
ForceAxisInputsWrites a double word into an input of an axis.
ForceAxisInputWordWrites a word into an input of a simulated axis.
GetAxisBuffersProvides pointers to the input and output buffers of an axis.
GetAxisByIndexGets information from an axis.
ReadAxisActualCurrentReads the variable (#x6078) of actual current.
ReadAxisActualPositionReads the current position from an axis using the primary encoder.
ReadAxisActualTorqueReads the actual torque from an axis.
ReadAxisActualVelocityReads the actual velocity from an axis.
ReadAxisAliasReads an alias index from an axis.
ReadAxisCustomInput1Reads the first custom input variable you added in IntervalZeroDevices database or UserDevices database, in which you can use KINGSTAR ESI Import Tool to add two custom input variables.
ReadAxisCustomInput2Reads the second custom input variable you added in IntervalZeroDevices database or UserDevices database, in which you can use KINGSTAR ESI Import Tool to add two custom input variables.
ReadAxisFollowingErrorReads a following error from an axis.
ReadAxisInputBitReads a bit from an input of a real or simulated axis.
ReadAxisInputByteReads a byte from an input of a real or simulated axis.
ReadAxisInputDWordReads a double word from an input of a real or simulated axis.
ReadAxisInputsReads a value from an input of an axis.
ReadAxisInputWordReads a word from an input of a real or simulated axis.
ReadAxisMopDisplayReads the value of the Modes of Operation Display variable in PDO.
ReadAxisOutputBitReads a bit from an output of a real or simulated axis.
ReadAxisOutputByteReads a byte from an output of a real or simulated axis with a byte offset.
ReadAxisOutputDWordReads a double word from an output of a real or simulated axis.
ReadAxisOutputsReads a value from an output of an axis.
ReadAxisOutputWordReads a word from an output of a real or simulated axis.
ReadAxisSecondEncoderReads the current position from an axis using the secondary encoder.
ReadAxisStatusWordReads the value of the Statusword variable from an axis.
ReadAxisTouchProbeStatusReads the variable (#x60B9) of the touch probe state.
WriteAxisAliasWrites an alias index into an axis.
WriteAxisControlWordWrites a value of the ControlWord variable into an axis.
WriteAxisCustomOutput1Writes a value into the first custom output variable you added in IntervalZeroDevices database or UserDevices database, in which you can use KINGSTAR ESI Import Tool to add two custom output variables.
WriteAxisCustomOutput2Writes a value into the second custom output variable you added in IntervalZeroDevices database or UserDevices database, in which you can use KINGSTAR ESI Import Tool to add two custom output variables.
WriteAxisMaxCurrentWrites the maximum current into an axis.
WriteAxisMaxTorqueWrites the maximum torque into an axis.
WriteAxisMopWrites a value of the Modes of Operation variable into an axis.
WriteAxisOutputBitWrites a bit into an output of a real or simulated axis.
WriteAxisOutputByteWrites a byte into an output of a real or simulated axis.
WriteAxisOutputDWordWrites a double word into an output of a real or simulated axis.
WriteAxisOutputsWrites a value into an output of an axis.
WriteAxisOutputWordWrites a word into an output of a real or simulated axis.
WriteAxisProfileAccelerationSets the Profile Acceleration of an axis.
WriteAxisProfileDecelerationSets the Profile Deceleration of an axis.
WriteAxisProfileVelocitySets the Profile Velocity of an axis.
WriteAxisTargetPositionSets the target position of an axis.
WriteAxisTargetTorqueSets the target torque of an axis.
WriteAxisTargetVelocitySets the target velocity of an axis.
WriteAxisTorqueOffsetSets the torque offset of an axis.
WriteAxisTouchProbeControlWrites the variable (#x60B8) of touch probe control.

Axis variable methods

Enables the modes for an axis to use.

NameDescription
EnableActualCurrentAdds the actual current variable to PDO.
EnableActualTorqueAdds the actual torque variable to PDO.
EnableActualVelocityAdds the actual velocity variable to PDO.
EnableAxisInputAdds the Digital Input variable to the PDO.
EnableAxisOutputAdds the Digital Output variable to the PDO.
EnableFollowingErrorAdds the Following Error variable to PDO.
EnableMaxCurrentAdds the Maximum Current variable to PDO.
EnableMaxTorqueAdds the Max Torque variable to PDO.
EnableProfilePositionAdds the Profile Velocity, Profile Acceleration, and Profile Deceleration variables to PDO.
EnableSecondEncoderAdds the Internal Position variable to PDO.
EnableSynchronizedControlModeAdds the Modes of Operation and Modes of Operation Display variables to PDO.
EnableTorqueOffsetAdds the torque offset variable to PDO.
EnableTouchProbeAdds the TouchProbeControl and TouchProbeStatus variables to PDO.
SetAxisAccessModeSets the data transfer mode for EtherCAT drives.

Command methods

The commands that wait, cancel, and get the states of a function.

 NameDescription
AbortCommandCancels a command.
AbortCommand (byte[])Cancels a command.
AbortCommand (byte)Cancels a command.
AbortCommand (double)Cancels a command.
AbortCommand (int)Cancels a command.
AbortCommand (long)Cancels a command.
AbortCommand (SdoEntryDescription)Cancels a command.
AbortCommand (SdoObjectDescription)Cancels a command.
AbortCommand (short)Cancels a command.
AbortCommand (uint)Cancels a command.
AbortCommand (ulong)Cancels a command.
AbortCommand (ushort[])Cancels a command.
AbortCommand (ushort)Cancels a command.
GetCommandsStatusGets the states of commands.
GetCommandStatusGets the state of a command.
GetCommandStatus (byte[])Gets the state of a command.
GetCommandStatus (byte)Gets the state of a command.
GetCommandStatus (double)Gets the state of a command.
GetCommandStatus (int)Gets the state of a command.
GetCommandStatus (long)Gets the state of a command.
GetCommandStatus (SdoEntryDescription)Gets the state of a command.
GetCommandStatus (SdoObjectDescription)Gets the state of a command.
GetCommandStatus (short)Gets the state of a command.
GetCommandStatus (uint)Gets the state of a command.
GetCommandStatus (ulong)Gets the state of a command.
GetCommandStatus (ushort[])Gets the state of a command.
GetCommandStatus (ushort)Gets the state of a command.
WaitForCommandWaits a command to be finished.
WaitForCommand (byte[])Waits a command to be finished.
WaitForCommand (byte)Waits a command to be finished.
WaitForCommand (double)Waits a command to be finished.
WaitForCommand (int)Waits a command to be finished.
WaitForCommand (long)Waits a command to be finished.
WaitForCommand (SdoEntryDescription)Waits a command to be finished.
WaitForCommand (SdoObjectDescription)Waits a command to be finished.
WaitForCommand (short)Waits a command to be finished.
WaitForCommand (uint)Waits a command to be finished.
WaitForCommand (ulong)Waits a command to be finished.
WaitForCommand (ushort[])Waits a command to be finished.
WaitForCommand (ushort)Waits a command to be finished.
WaitForCommandAsyncWaits a command to be finished as an asynchronous operation.
WaitForCommandAsync (byte[])Waits a command to be finished as an asynchronous operation.
WaitForCommandAsync (byte)Waits a command to be finished as an asynchronous operation.
WaitForCommandAsync (double)Waits a command to be finished as an asynchronous operation.
WaitForCommandAsync (int)Waits a command to be finished as an asynchronous operation.
WaitForCommandAsync (long)Waits a command to be finished as an asynchronous operation.
WaitForCommandAsync (SdoEntryDescription)Waits a command to be finished as an asynchronous operation.
WaitForCommandAsync (SdoObjectDescription)Waits a command to be finished as an asynchronous operation.
WaitForCommandAsync (short)Waits a command to be finished as an asynchronous operation.
WaitForCommandAsync (uint)Waits a command to be finished as an asynchronous operation.
WaitForCommandAsync (ulong)Waits a command to be finished as an asynchronous operation.
WaitForCommandAsync (ushort[])Waits a command to be finished as an asynchronous operation.
WaitForCommandAsync (ushort)Waits a command to be finished as an asynchronous operation.

Debug methods

Sends a log to your KINGSTAR application and identifies it.

 NameDescription
DebugMessageSends the KINGSTAR log messages to KINGSTAR Analysis Console.
GetCategoryNameGets a string assigned to a log ID.
SetCategoryNameSets a string to associate to a log ID.

Heartbeat methods

Detects whether the motion application is running properly by sending periodic signals to KINGSTAR.

 NameDescription
PulseHeartbeatSends a signal to notify KINGSTAR that the motion application is running properly.
SetHeartbeatConfigures the heartbeat settings, which periodically checks whether the motion application is running properly.

I/O control methods

Reads and writes values into an I/O module, or get information from it.

 NameDescription
ForceInputBitWrites a bit into an input of a simulated I/O module.
ForceInputByteWrites a byte into an input of a simulated I/O module.
ForceInputDWordWrites a double word into an input of a simulated I/O module.
ForceInputWordWrites a word into an input of a simulated I/O module.
GetIOBuffersProvides pointers to the input and output buffers of an I/O module.
GetIOByIndexGets the information from a specified real or simulated I/O module.
ReadInputBitReads a bit from an input of a real or simulated I/O module.
ReadInputByteReads a byte from an input of a real or simulated I/O module.
ReadInputDWordReads a double word from an input of a real or simulated I/O module.
ReadInputWordReads a word from an input of a real or simulated I/O module.
ReadIOAliasReads the alias index from a real or simulated I/O module.
ReadOutputBitReads a bit from an output of a real or simulated I/O module.
ReadOutputByteReads a byte from an output of a real or simulated I/O module with a byte offset.
ReadOutputDWordReads a double word from an output of a real or simulated I/O module.
ReadOutputWordReads a word from an output of a real or simulated I/O module.
WriteIOAliasWrites the alias index into a real or simulated I/O module.
WriteOutputBitWrites a bit into an output of a real or simulated I/O module.
WriteOutputByteWrites a byte into an output of a real or simulated I/O module.
WriteOutputDWordWrites a double word into an output of a real or simulated I/O module.
WriteOutputWordWrites a word into an output of a real or simulated I/O module.

KINGSTAR memory methods

Reads and writes the KINGSTAR shared memory.

 NameDescription
GetMemoryPointerGets the stream of the data in the shared memory.
ReadMemoryBitReads a bit from the shared memory.
ReadMemoryByteReads a byte from the shared memory.
ReadMemoryDWordReads a double word from the shared memory.
ReadMemoryLWordReads a quad word from the shared memory.
ReadMemoryWordReads a word from the shared memory.
WriteMemoryBitWrites a bit into the shared memory.
WriteMemoryByteWrites a byte into the shared memory.
WriteMemoryDWordWrites a double word into the shared memory.
WriteMemoryLWordWrites a quad word into the shared memory.
WriteMemoryWordWrites a word into the shared memory.

Mailbox methods

Exchanges data between the EtherCAT master and slave.

 NameDescription
AoeReadCommandReads data through ADS over EtherCAT (AoE).
AoeReadSdoObjectReads data from a slave using the ADS over EtherCAT (AoE) SDO method.
AoeReadWriteCommandReads and writes data through ADS over EtherCAT (AoE) at the same time.
AoeWriteCommandWrites data through ADS over EtherCAT (AoE).
AoeWriteControlCommandSends a command to the device through ADS over EtherCAT (AoE).
AoeWriteSdoObjectWrites data to a slave using the ADS over EtherCAT (AoE) SDO method.
CoeReadSdoEntryDescriptionReads the description of an entry of an object dictionary from an SDO object through CANopen over EtherCAT (CoE).
CoeReadSdoObjectReads the value of an SDO object through CANopen over EtherCAT (CoE).
CoeReadSdoObjectDescriptionReads the description of an SDO object through CANopen over EtherCAT (CoE).
CoeReadSdoODListReads the list of object inddexes in a dictionary table using the CANopen over EtherCAT (CoE) SDO method.
CoeWriteSdoObjectWrites the value of an SDO object through CANopen over EtherCAT (CoE).
EoeSetSlaveEoeIpConfigures an EtherCAT slave's Ethernet over EtherCAT (EoE) network settings.
FoeReadFileToBufferReads the servo drive's file and saves it in the user application's memory space.
FoeReadFileToFileReads the servo drive's file and saves it on the local machine.
FoeWriteFileFromBufferReads a file from the local buffer and writes it to the device.
FoeWriteFileFromFileReads a file on the local machine and writes it to the device.
ReadAxisSdoObjectReads a value of an SDO object from an axis.
ReadIOSdoObjectReads a value of an SDO object from an I/O module.
RegisterMailboxCallbackRegisters a function that the KINGSTAR Subsystem will call when a mailbox message comes in.
SoeReadSscUploads data from an EtherCAT slave to the EtherCAT master through SoE (Servo drive profile over EtherCAT).
SoeWriteSscDownloads data from the EtherCAT master to a EtherCAT slave through SoE (Servo drive profile over EtherCAT).
VoeWriteWrites data into a VoE-enabled device through VoE (Vendor-specific protocol over EtherCAT).
WriteAxisSdoObjectWrites the value of an SDO object into an axis.
WriteIOSdoObjectWrites the value of an SDO object into an I/O module.

Modular slaves methods

Configures the devices that cannot be detected by auto-configuration.

 NameDescription
AddModuleConfiguration (CanOpenSetting)Adds a CANopen device that auto-configuration cannot detect.
AddModuleConfiguration (EcatMdpSetting)Adds a Modular Device Profile (MDP) that auto-configuration cannot detect.
AddModuleConfiguration (El6695Setting)Adds an EL6695 device that auto-configuration cannot detect.
AddModuleConfiguration (EsiSetting)Manually select a compatible ESI definition for a device and override the EtherCAT auto-configuration.
AddModuleConfiguration (IoLinkSetting)Adds an IO-Link device that auto-configuration cannot detect.
AddModuleConfiguration (SafetySetting)Adds a safety device that auto-configuration cannot detect.
GetConfiguredModuleCountGets the number of the configured devices.
GetModuleConfigurationGets the information of the configured device.
RemoveModuleConfigurationRemoves the configured device.

Simulated hardware methods

Configures simulated hardware.

 NameDescription
ConfigureAxisConfigures the settings of a simulated axis.
ConfigureIoConfigures the settings of a simulated I/O module.
GetConfiguredAxesCountGets the number of simulated axes.
GetConfiguredIoCountGets the number of simulated I/O modules.
SetConfiguredAxesCountConfigures a number of simulated axes.
SetConfiguredIoCountConfigures a number of simulated I/O modules.

Slave control methods

Reads and writes data from an EtherCAT slave.

 NameDescription
GetSlaveByIdGets detailed information from a specified slave using an ID.
OverrideSlavePdoConfigurationChanges the input and output PDO length of the device to the new values. This can be used to programmatically set the configuration of a device.
ReadAllSlaveEEpromReads all data from a slave's EEPROM.
ReadSlaveAliasReads the alias address from an EtherCAT slave.
ReadSlaveEEpromReads a double word from a slave's EEPROM.
ReadSlaveRegisterReads data from an EtherCAT slave's register.
ReloadSlaveEEpromReloads a slave's EEPROM.
RequestSlaveStateRequests an EtherCAT slave to go into the specified EtherCAT state.
ResetSlaveEscResets a slave's EtherCAT slave controller.
RestartSlaveRestarts the specified slave.
WriteAllSlaveEEpromWrites all data into a slave's EEPROM.
WriteSlaveAliasWrites an alias address into an EtherCAT slave.
WriteSlaveEEpromWrites a double word into a slave's EEPROM.
WriteSlaveRegisterWrites data into an EtherCAT slave's register.

Subsystem configuration methods

Configures the KINGSTAR Subsystem settings.

 NameDescription
ConfigureDcConfigures distributed clock (DC) options.
EnableAutoConfigAllows auto-config to be enabled. It automatically configures the EtherCAT settings for your servo drives.
EnableAutoRepairAllows auto-repair to be enabled.
EnableAutoRestartAllows for auto-restart to be enabled.
EnableHotConnectAllows new hardware to be added while the EtherCAT network is running.
EnableRedundancyEnables cable redundancy.
EnableServerLogEnables the connection messages from the KINGSTAR runtime on RTX64 console.
EnableShutdownHandlerAttaches a shutdown handler while an EtherCAT connection is being established.
GetFeatureStatusGets the current state of a feature from the subsystem.
SetCycleTimeSets the EtherCAT cycle time.
SetFeatureStatusSets the subsystem's feature.

Subsystem control methods

Starts, stops, and check the state of the KINGSTAR Subsystem.

 NameDescription
CreatePrepares to link a program to the KINGSTAR Subsystem.
CreateAsyncPrepares to link a program to the KINGSTAR Subsystem as an asynchronous operation.
DestroyCloses the link to the KINGSTAR Subsystem and terminates the Subsystem.
DestroyAsyncCloses the link to the KINGSTAR Subsystem and terminates the Subsystem as an asynchronous operation.
EnableAliasesEnables the alias indexes for the axis and I/O index parameters in all methods.
GetAliasesStatusChecks whether the program has enabled aliasing through EnableAliases.
GetDCSystemTimeGets the time stamp of the selected Sync0's signal of the distributed clock (DC).
GetStatusGets the state of an EtherCAT link.
GetStatusExGets the extended state of an EtherCAT link.
LogRecords the specified data in the logging shared memory.
RegisterCallbackRegisters a method that the KINGSTAR Subsystem will call every cycle when new data comes in.
RequestStateRequests the KINGSTAR Subsystem to go into the specified EtherCAT state.
RestartRestarts the EtherCAT master.
StartStarts the KINGSTAR Subsystem.
StartFromConfigurationStarts the KINGSTAR Subsystem using the configuration file created by KINGSTAR Configuration Tool.
StopStops the EtherCAT network and the KINGSTAR Subsystem.
StopLogStops recording the specified data in the logging shared memory.
SubsystemIsRunningAllows the users to check if the KINGSTAR Subsystem process is running without starting it if it is not. This can be used before Create and after Destroy.
UnlinkDisconnects the application from KINGSTAR without terminating the KINGSTAR Subsystem.

Trigger methods

Sets or gets a trigger that is used to start a new move.

 NameDescription
GetTriggerGets the details of a trigger.
SetTriggerConfigures a trigger.

Variable table methods

Allows users to define their own variables and use them in their applications and KINGSTAR tools.

 NameDescription
AddVariableAdds a user-defined variable.
GetVariableGets the details of a user-defined variable.
GetVariablesGets the list of user-defined variables.
ReadBoolVariableReads a bool value from a variable.
ReadByteVariableReads an 8-bit unsigned integer value from a variable.
ReadDIntVariableReads an integer value from a variable.
ReadDoubleVariableReads a double value from a variable.
ReadDWordVariableReads an unsigned integer value from a variable.
ReadFloatVariableReads a float value from a variable.
ReadIntVariableReads a short integer value from a variable.
ReadLIntVariableReads a long integer value from a variable.
ReadLWordVariableReads an unsigned long integer value from a variable.
ReadRawVariableReads a byte array from a variable.
ReadSIntVariableReads an 8-bit integer value from a variable.
ReadWordVariableReads an unsigned short integer value from a variable.
RemoveVariableRemoves a user-defined variable.
WriteVariable (bool)Writes a bool value into a variable.
WriteVariable (byte)Writes an 8-bit unsigned integer value into a variable.
WriteVariable (byte[])Writes a byte array into a variable.
WriteVariable (double)Writes a double value into a variable.
WriteVariable (float)Writes a float value into a variable.
WriteVariable (int)Writes an integer value into a variable.
WriteVariable (long)Writes a long integer value into a variable.
WriteVariable (sbyte)Writes an 8-bit integer value into a variable.
WriteVariable (short)Writes a short integer value into a variable.
WriteVariable (uint)Writes an unsigned integer value into a variable.
WriteVariable (ulong)Writes an unsigned long integer value into a variable.
WriteVariable (ushort)Writes an unsigned short integer value into a variable.

See also

IntervalZero.KINGSTAR.Base.Api Namespace